package com.jxc.jxc01.grc.entity;

import java.util.Objects;

public class Return {
    private int id;
    private int procurement;
    private int chargebacks;
    private int quantity;
    private double unit_price;
    private double price;
    private String state;
    private String return_time;
    private String cause;

    public Return() {
    }

    public Return(int id, int procurement, int chargebacks, int quantity, double unit_price, double price, String state, String return_time, String cause) {
        this.id = id;
        this.procurement = procurement;
        this.chargebacks = chargebacks;
        this.quantity = quantity;
        this.unit_price = unit_price;
        this.price = price;
        this.state = state;
        this.return_time = return_time;
        this.cause = cause;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return procurement
     */
    public int getProcurement() {
        return procurement;
    }

    /**
     * 设置
     * @param procurement
     */
    public void setProcurement(int procurement) {
        this.procurement = procurement;
    }

    /**
     * 获取
     * @return chargebacks
     */
    public int getChargebacks() {
        return chargebacks;
    }

    /**
     * 设置
     * @param chargebacks
     */
    public void setChargebacks(int chargebacks) {
        this.chargebacks = chargebacks;
    }

    /**
     * 获取
     * @return quantity
     */
    public int getQuantity() {
        return quantity;
    }

    /**
     * 设置
     * @param quantity
     */
    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    /**
     * 获取
     * @return unit_price
     */
    public double getUnit_price() {
        return unit_price;
    }

    /**
     * 设置
     * @param unit_price
     */
    public void setUnit_price(double unit_price) {
        this.unit_price = unit_price;
    }

    /**
     * 获取
     * @return price
     */
    public double getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(double price) {
        this.price = price;
    }

    /**
     * 获取
     * @return state
     */
    public String getState() {
        return state;
    }

    /**
     * 设置
     * @param state
     */
    public void setState(String state) {
        this.state = state;
    }

    /**
     * 获取
     * @return return_time
     */
    public String getReturn_time() {
        return return_time;
    }

    /**
     * 设置
     * @param return_time
     */
    public void setReturn_time(String return_time) {
        this.return_time = return_time;
    }

    /**
     * 获取
     * @return cause
     */
    public String getCause() {
        return cause;
    }

    /**
     * 设置
     * @param cause
     */
    public void setCause(String cause) {
        this.cause = cause;
    }

    public String toString() {
        return "Return{id = " + id + ", procurement = " + procurement + ", chargebacks = " + chargebacks + ", quantity = " + quantity + ", unit_price = " + unit_price + ", price = " + price + ", state = " + state + ", return_time = " + return_time + ", cause = " + cause + "}";
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Return aReturn = (Return) o;
        return id == aReturn.id && procurement == aReturn.procurement && chargebacks == aReturn.chargebacks && quantity == aReturn.quantity && Double.compare(aReturn.unit_price, unit_price) == 0 && Double.compare(aReturn.price, price) == 0 && Objects.equals(state, aReturn.state) && Objects.equals(return_time, aReturn.return_time) && Objects.equals(cause, aReturn.cause);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, procurement, chargebacks, quantity, unit_price, price, state, return_time, cause);
    }
}
